from rest_framework.viewsets import ModelViewSet

from goods.models import Brand
from meiduo_admin.brand.brand_serializers import BrandSerializer
from meiduo_admin.user.my_pagination import MyNumberPagination


class BrandsViewSet(ModelViewSet):
    pagination_class = MyNumberPagination
    queryset = Brand.objects.all()
    serializer_class = BrandSerializer
